package com.alibaba.feignbasic;

import com.alibaba.FeignServerConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author YL
 * @date 22:10 2021/10/14
 */
@FeignClient(name = "feign-server",path = "feign",configuration = FeignServerConfig.class)
public interface FeignServerClient {

    @GetMapping("/say/{name}")
    String sayHello(@PathVariable("name") String name);
}
